﻿using System.Collections.Generic;

namespace Eksponent.CropUp.Client
{
    public class CropperData
    {
        public int originalWidth { get; set; }

        public int originalHeight { get; set; }

        public string src { get; set; }

        public ClientCropData data { get; set; }

        public Dictionary<string, ClientCropSettings> croppings { get; set; }
    }

    public class ClientCropData
    {
        public ClientCropInfo @default { get; set; }
        public Dictionary<string, ClientCropInfo> croppings { get; set; }        
    }

    public class ClientCropInfo
    {        
        public bool manual { get; set; }
        public double[] box { get; set; }
        public double[] gravity { get; set; }                
    }

    public class ClientCropSettings
    {
        public int width { get; set; }
        public int height { get; set; }
        public string label { get; set; }
        public string alias { get; set; }                
    }
}
